package dialogs
{
	import UIFree.controls.uif_button;
	import UIFree.uif_component;
	
	import components.pj_button;
	import Classes.pi_events;
	
	import flash.events.Event;
	import flash.geom.Rectangle;

	public class pi_alertInvite extends pi_alert {
		public function pi_alertInvite(parent:uif_component, message:String, closeFunc:Function=null, cancelButton: Boolean=true) {
			super(parent, message, closeFunc, true);
			var inner: Rectangle = getInner();
			new pj_button(this, inner.x + inner.width - 120, height - pj_button.HEIGHT, 120, pi_data.INVITECAPTION, function(e: Event): void {
				app.dispatchEvent(new Event(pi_events.INVITEDIALOG));
			});
		}
	}
}